<MDXHeader
  title="Resizable"
  description="SolidJS components for building resizable panels and splitters."
  docs="https://corvu.dev/docs/primitives/resizable/"
/>

<ComponentPreview name="resizable-demo" />

## Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>

<TabsContent value="cli">

```bash
npx solidui-cli@latest add resizable
```

</TabsContent>

<TabsContent value="manual">
<Steps>

<Step>Install the following dependencies: </Step>

```bash
npm install @corvu/resizable
```

<Step>Copy and paste the following code into your project: </Step>

<ComponentSource name="resizable" />

</Steps>
</TabsContent>

</Tabs>

## Usage

```tsx
import { Resizable, ResizableHandle, ResizablePanel } from "~/components/ui/resizable"
```

```tsx
<Resizable orientation="horizontal">
  <ResizablePanel>One</ResizablePanel>
  <ResizableHandle />
  <ResizablePanel>Two</ResizablePanel>
</Resizable>
```
